package location.autocomplete;

import javax.faces.bean.ManagedBean;
import javax.faces.bean.ViewScoped;

/**
 *
 * @author avbravo
 */
@ManagedBean(name = "location_autoCompleteBeans")
@ViewScoped
public class Beans {

    private location.general.Beans generalBeans = new location.general.Beans();

    public Beans() {
    }

    public Beans(Integer id, String nombre) {
        generalBeans.setId(id);
        generalBeans.setNombre(nombre);
    }

    private String strScape(String str) {
        str = str.trim();
        str = str.replace("'", "''");
        str = str.replace("\\", "\\\\");
        return str;
    }

    public location.general.Beans getGeneralBeans() {
        return generalBeans;
    }

    public void setGeneralBeans(location.general.Beans generalBeans) {
        this.generalBeans = generalBeans;
    }
}
